<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>详细资料</title>

<script type="text/javascript">
	function altRows(id) {
		if (document.getElementsByTagName) {

			var table = document.getElementById(id);
			var rows = table.getElementsByTagName("tr");

			for (i = 0; i < rows.length; i++) {
				if (i % 2 == 0) {
					rows[i].className = "evenrowcolor";
				} else {
					rows[i].className = "oddrowcolor";
				}
			}
		}
	}

	window.onload = function() {
		altRows('alternatecolor');
		
		
		
	}
	
</script>


<!-- CSS goes in the document HEAD or added to your external stylesheet -->
<style type="text/css">
table.altrowstable {
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #a9c6c9;
	border-collapse: collapse;
}

table.altrowstable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #FFFFFF;
}

table.altrowstable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #FFFFFF;
}

.oddrowcolor {
	background-color: white;
}

.evenrowcolor {
	background-color: white;
}

#mainDiv { background-color:white; height:100% ; width:100%; position:absolute;}
body { background-color:Yellow; margin:0px; padding:0px; overflow:hidden;}

</style>
</head>
<body bgcolor="white">
<table id="mainDiv" align="center" width="575" height="325" border="0" cellpadding="0" cellspacing="10"
	class="altrowstable" id="alternatecolor">
	<tr>
		<td width="25%"><table width="26%" border="0" cellpadding="0"
				cellspacing="0" class="l-r-t-b-1pxline">
				<tr>
					<td><img src="${model.photo }" width="150"
						height="200">  </td>
				</tr>
			</table></td>
		<td width="75%">
			<table width="100%" height="180" border="0" cellpadding="0"
				cellspacing="0" >
				<tr>
					<td width="8%">商品名称：</td>
					<td width="42%">${model.names }</td>
				</tr>
				<tr>
					<td >描述：</td>
					<td >${model.summary }</td>
				</tr>
				<tr>
					<td >价格：</td>
					<td >${model.price }</td>
				</tr>
				<tr>
					<td >原价：</td>
					<td >${model.nativePrice }</td>
				</tr>
				<tr>
					<td>库存：</td>
					<td>${model.number }</td>
				</tr>
<%-- 				<tr>
					<td>所属单位：</td>
					<td>${model.sysDepartment.depName }</td>
				</tr>
				<tr>
					<td><p>商品类别：</p></td>
					<td colspan = " 3 ">${model.commodityCategory.name}</td>
					
				</tr> --%>
			</table></td>
	</tr>
</table>
 
</body>
</html>
